package com.netease.c;

import java.io.ByteArrayOutputStream;

public class l
{
  static ByteArrayOutputStream a;
  private static final byte[] b;
  private static final byte[] c;

  static
  {
    int i = 65;
    byte[] arrayOfByte = new byte[i];
    arrayOfByte[0] = 65;
    arrayOfByte[1] = 66;
    arrayOfByte[2] = 67;
    arrayOfByte[3] = 68;
    arrayOfByte[4] = 69;
    arrayOfByte[5] = 70;
    arrayOfByte[6] = 71;
    arrayOfByte[7] = 72;
    arrayOfByte[8] = 73;
    arrayOfByte[9] = 74;
    arrayOfByte[10] = 75;
    arrayOfByte[11] = 76;
    arrayOfByte[12] = 77;
    arrayOfByte[13] = 78;
    arrayOfByte[14] = 79;
    arrayOfByte[15] = 80;
    arrayOfByte[16] = 81;
    arrayOfByte[17] = 82;
    arrayOfByte[18] = 83;
    arrayOfByte[19] = 84;
    arrayOfByte[20] = 85;
    arrayOfByte[21] = 86;
    arrayOfByte[22] = 87;
    arrayOfByte[23] = 88;
    arrayOfByte[24] = 89;
    arrayOfByte[25] = 90;
    arrayOfByte[26] = 97;
    arrayOfByte[27] = 98;
    arrayOfByte[28] = 99;
    arrayOfByte[29] = 100;
    arrayOfByte[30] = 101;
    arrayOfByte[31] = 102;
    arrayOfByte[32] = 103;
    arrayOfByte[33] = 104;
    arrayOfByte[34] = 105;
    arrayOfByte[35] = 106;
    arrayOfByte[36] = 107;
    arrayOfByte[37] = 108;
    arrayOfByte[38] = 109;
    arrayOfByte[39] = 110;
    arrayOfByte[40] = 111;
    arrayOfByte[41] = 112;
    arrayOfByte[42] = 113;
    arrayOfByte[43] = 114;
    arrayOfByte[44] = 115;
    arrayOfByte[45] = 116;
    arrayOfByte[46] = 117;
    arrayOfByte[47] = 118;
    arrayOfByte[48] = 119;
    arrayOfByte[49] = 120;
    arrayOfByte[50] = 121;
    arrayOfByte[51] = 122;
    arrayOfByte[52] = 48;
    arrayOfByte[53] = 49;
    arrayOfByte[54] = 50;
    arrayOfByte[55] = 51;
    arrayOfByte[56] = 52;
    arrayOfByte[57] = 53;
    arrayOfByte[58] = 54;
    arrayOfByte[59] = 55;
    arrayOfByte[60] = 56;
    arrayOfByte[61] = 57;
    arrayOfByte[62] = 43;
    arrayOfByte[63] = 47;
    arrayOfByte[64] = 61;
    b = arrayOfByte;
    c = new byte[''];
    for (int j = 0; j < 128; j++)
      c[j] = -1;
    while (i <= 90)
    {
      c[i] = (byte)(i - 65);
      i++;
    }
    for (int k = 97; k <= 122; k++)
      c[k] = (byte)(26 + (k - 97));
    for (int m = 48; m <= 57; m++)
      c[m] = (byte)(52 + (m - 48));
    c[43] = 62;
    c[47] = 63;
    c[61] = 64;
  }

  private static boolean a(byte paramByte)
  {
    int i = 1;
    if (paramByte == 61);
    while (true)
    {
      return i;
      if ((paramByte < 0) || (paramByte >= 128))
      {
        i = 0;
        continue;
      }
      if (c[paramByte] != -1)
        continue;
      i = 0;
    }
  }

  public static byte[] a(String paramString)
  {
    if ((paramString == null) || (paramString.length() == 0));
    for (byte[] arrayOfByte = new byte[0]; ; arrayOfByte = b(paramString.getBytes()))
      return arrayOfByte;
  }

  public static byte[] a(byte[] paramArrayOfByte)
  {
    int i = 0;
    int j = paramArrayOfByte.length % 3;
    if (j == 0);
    for (byte[] arrayOfByte = new byte[4 * paramArrayOfByte.length / 3]; ; arrayOfByte = new byte[4 * (1 + paramArrayOfByte.length / 3)])
    {
      int k = paramArrayOfByte.length - j;
      int m = 0;
      while (m < k)
      {
        int i8 = 0xFF & paramArrayOfByte[m];
        int i9 = 0xFF & paramArrayOfByte[(m + 1)];
        int i10 = 0xFF & paramArrayOfByte[(m + 2)];
        arrayOfByte[i] = b[(0x3F & i8 >>> 2)];
        arrayOfByte[(i + 1)] = b[(0x3F & (i8 << 4 | i9 >>> 4))];
        arrayOfByte[(i + 2)] = b[(0x3F & (i9 << 2 | i10 >>> 6))];
        arrayOfByte[(i + 3)] = b[(i10 & 0x3F)];
        m += 3;
        i += 4;
      }
    }
    switch (j)
    {
    case 0:
    default:
    case 1:
    case 2:
    }
    while (true)
    {
      return arrayOfByte;
      int i5 = 0xFF & paramArrayOfByte[(-1 + paramArrayOfByte.length)];
      int i6 = 0x3F & i5 >>> 2;
      int i7 = 0x3F & i5 << 4;
      arrayOfByte[(-4 + arrayOfByte.length)] = b[i6];
      arrayOfByte[(-3 + arrayOfByte.length)] = b[i7];
      arrayOfByte[(-2 + arrayOfByte.length)] = 61;
      arrayOfByte[(-1 + arrayOfByte.length)] = 61;
      continue;
      int n = 0xFF & paramArrayOfByte[(-2 + paramArrayOfByte.length)];
      int i1 = 0xFF & paramArrayOfByte[(-1 + paramArrayOfByte.length)];
      int i2 = 0x3F & n >>> 2;
      int i3 = 0x3F & (n << 4 | i1 >>> 4);
      int i4 = 0x3F & i1 << 2;
      arrayOfByte[(-4 + arrayOfByte.length)] = b[i2];
      arrayOfByte[(-3 + arrayOfByte.length)] = b[i3];
      arrayOfByte[(-2 + arrayOfByte.length)] = b[i4];
      arrayOfByte[(-1 + arrayOfByte.length)] = 61;
    }
  }

  public static byte[] a(byte[] paramArrayOfByte, int paramInt)
  {
    int i = 0;
    int j = paramInt % 3;
    if (j == 0);
    for (byte[] arrayOfByte = new byte[paramInt * 4 / 3]; ; arrayOfByte = new byte[4 * (1 + paramInt / 3)])
    {
      int k = paramInt - j;
      int m = 0;
      while (m < k)
      {
        int i8 = 0xFF & paramArrayOfByte[m];
        int i9 = 0xFF & paramArrayOfByte[(m + 1)];
        int i10 = 0xFF & paramArrayOfByte[(m + 2)];
        arrayOfByte[i] = b[(0x3F & i8 >>> 2)];
        arrayOfByte[(i + 1)] = b[(0x3F & (i8 << 4 | i9 >>> 4))];
        arrayOfByte[(i + 2)] = b[(0x3F & (i9 << 2 | i10 >>> 6))];
        arrayOfByte[(i + 3)] = b[(i10 & 0x3F)];
        m += 3;
        i += 4;
      }
    }
    switch (j)
    {
    case 0:
    default:
    case 1:
    case 2:
    }
    while (true)
    {
      return arrayOfByte;
      int i5 = 0xFF & paramArrayOfByte[(paramInt - 1)];
      int i6 = 0x3F & i5 >>> 2;
      int i7 = 0x3F & i5 << 4;
      arrayOfByte[(-4 + arrayOfByte.length)] = b[i6];
      arrayOfByte[(-3 + arrayOfByte.length)] = b[i7];
      arrayOfByte[(-2 + arrayOfByte.length)] = 61;
      arrayOfByte[(-1 + arrayOfByte.length)] = 61;
      continue;
      int n = 0xFF & paramArrayOfByte[(paramInt - 2)];
      int i1 = 0xFF & paramArrayOfByte[(paramInt - 1)];
      int i2 = 0x3F & n >>> 2;
      int i3 = 0x3F & (n << 4 | i1 >>> 4);
      int i4 = 0x3F & i1 << 2;
      arrayOfByte[(-4 + arrayOfByte.length)] = b[i2];
      arrayOfByte[(-3 + arrayOfByte.length)] = b[i3];
      arrayOfByte[(-2 + arrayOfByte.length)] = b[i4];
      arrayOfByte[(-1 + arrayOfByte.length)] = 61;
    }
  }

  public static byte[] b(byte[] paramArrayOfByte)
  {
    if (a == null)
      a = new ByteArrayOutputStream();
    a.reset();
    byte[] arrayOfByte1;
    if ((paramArrayOfByte == null) || (paramArrayOfByte.length == 0))
      arrayOfByte1 = new byte[0];
    while (true)
    {
      return arrayOfByte1;
      if (paramArrayOfByte.length % 4 != 0);
      byte[] arrayOfByte2 = c(paramArrayOfByte);
      byte b1 = 0;
      byte b2 = 0;
      byte b3 = 0;
      byte b4 = 0;
      int i = 0;
      while (true)
      {
        if (i >= arrayOfByte2.length)
          break label466;
        if (i < arrayOfByte2.length)
        {
          int i9 = i + 1;
          b4 = arrayOfByte2[i];
          if (!a(b4))
          {
            arrayOfByte1 = new byte[0];
            break;
          }
          i = i9;
        }
        if (i < arrayOfByte2.length)
        {
          int i8 = i + 1;
          b3 = arrayOfByte2[i];
          if (!a(b3))
          {
            arrayOfByte1 = new byte[0];
            break;
          }
          i = i8;
        }
        if (i < arrayOfByte2.length)
        {
          int i7 = i + 1;
          b2 = arrayOfByte2[i];
          if (!a(b2))
          {
            arrayOfByte1 = new byte[0];
            break;
          }
          i = i7;
        }
        if (i < arrayOfByte2.length)
        {
          int i6 = i + 1;
          b1 = arrayOfByte2[i];
          if (!a(b1))
          {
            arrayOfByte1 = new byte[0];
            break;
          }
          i = i6;
        }
        if ((b4 == b[64]) || (b3 == b[64]) || ((b2 == b[64]) && (b1 != b[64])))
        {
          arrayOfByte1 = new byte[0];
          break;
        }
        if (b2 == b[64])
        {
          int i4 = c[b4];
          int i5 = c[b3];
          a.write((byte)(i4 << 2 | i5 >> 4));
          continue;
        }
        if (b1 == b[64])
        {
          int i1 = c[b4];
          int i2 = c[b3];
          int i3 = c[b2];
          a.write((byte)(i1 << 2 | i2 >> 4));
          a.write((byte)(i2 << 4 | i3 >> 2));
          continue;
        }
        int j = c[b4];
        int k = c[b3];
        int m = c[b2];
        int n = c[b1];
        a.write((byte)(j << 2 | k >> 4));
        a.write((byte)(k << 4 | m >> 2));
        a.write((byte)(n | m << 6));
      }
      label466: arrayOfByte1 = a.toByteArray();
    }
  }

  private static byte[] c(byte[] paramArrayOfByte)
  {
    byte[] arrayOfByte1 = new byte[paramArrayOfByte.length];
    int i = 0;
    int j = 0;
    while (i < paramArrayOfByte.length)
    {
      if (a(paramArrayOfByte[i]))
      {
        int k = j + 1;
        arrayOfByte1[j] = paramArrayOfByte[i];
        j = k;
      }
      i++;
    }
    byte[] arrayOfByte2 = new byte[j];
    System.arraycopy(arrayOfByte1, 0, arrayOfByte2, 0, j);
    return arrayOfByte2;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.c.l
 * JD-Core Version:    0.6.0
 */